package com.itheima.d6_singleInstance;

import java.util.concurrent.ArrayBlockingQueue;

/*
    目标：掌握单例设计模式的写法。
    饿汉式
 */
public class Test1 {
    public static void main(String[] args) {
        System.out.println(King.getKing());
        System.out.println(King.getKing());
        System.out.println(King.getKing());
        System.out.println(King.getKing());


    }
}
